//
//  HikeBadge.swift
//  Landmarks
//
//  Created by symbio on 2022/7/26.
//

import SwiftUI

struct HikeBadge: View {
    
    var name: String
    
    
    var body: some View {
        VStack(alignment: .center) {
            Badge()
                .aspectRatio(contentMode: .fit)
                .frame(width: 100, height: 100)
                .scaleEffect(1)
            
            Text(name)
                .font(.caption)
                .accessibilityLabel(Text("Badge for \(name)."))
        }
    }
}

struct HikeBadge_Previews: PreviewProvider {
    static var previews: some View {
        HikeBadge(name: "Preview Testing")
    }
}
